<!DOCTYPE html>
<html>
<head>
    <title>skd_log</title>
<#include "/sys/newheader.html"/>
</head>
<body>
<div id="rrapp" class="main-content">
    <div class="box box-main">
        <div class="box-header">
            <div class="box-title">
                <i class="fa fa-list-alt"></i> 执行日志管理
            </div>
            <div class="box-tools pull-right">
                <a href="javascript:void(0);" class="btn btn-default" id="btnSearch" title="查询" @click="toggle"><i class="fa fa-filter"></i> {{btnText}}</a>
                <button type="button" class="btn btn-warning" @click="back"><i class="fa fa-backward"></i> 返回</button>
            </div>
        </div>

        <div class="box-body">
            <div class="form-inline" v-show="isShowCond">
                <div class="form-group">
                    <label class="control-label">实例ID</label>
                    <div class="control-inline">
                        <input type="text" class="form-control" v-model="qryForm.instanceId" placeholder="实例ID"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label">作业ID</label>
                    <div class="control-inline">
                        <input type="text" class="form-control" v-model="qryForm.workId" placeholder="作业ID"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label">作业项ID</label>
                    <div class="control-inline">
                        <input type="text" class="form-control" v-model="qryForm.workItemId" placeholder="作业项ID"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label">状态</label>
                    <div class="control-inline">
                        <select  class="form-control" v-model="qryForm.status" placeholder="状态"  @change="changeStatus">
                            <option value="" >全部</option>
                            <template v-for="option in logStatusList">
                                <option :value="option.dictCode" v-if="option.dictCode == qryForm.status" selected>
                                    {{ option.dictName }}
                                </option>
                                <option :value="option.dictCode" v-else>
                                    {{ option.dictName }}
                                </option>
                            </template>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <button type="submit" class="btn btn-primary btn-sm" @click="query">查询</button>
                    <button type="reset" class="btn btn-default btn-sm" @click="reset">重置</button>
                </div>
            </div>
            <table id="jqGrid"></table>
            <div id="jqGridPager"></div>
        </div>
    </div>
</div>

<script src="${base}/js/skd/scheduleLog.js?_${.now?string['yyyyMMddhhmmSS']}"></script>
</body>
</html>
